package kislo.dima.task4;

import java.util.Random;

public class MatrixFactory {

	public static Matrix createMatrix(int m, int n) {
		Matrix matrix = new Matrix(m, n);
		for (int i = 0; i < m; i++)
			for (int j = 0; j < n; j++)
				matrix.setElement(i, j, Randomize());
		return matrix;
	}
	
	private static int Randomize() {
		int a = new Random().nextInt(5);
		int b = new Random().nextInt(10);
		return b - a;
		
	}
}

